i = 0
s = 0

while i < 9876:
	i = i + 1
	s=s+i
	
print s	
